package dormouse.vfs.event;

import java.util.List;

import org.apache.commons.vfs2.FileObject;

/**
 * This class represents a file selection event.
 */
public class FileSelectionEvent implements IFileSelectionEvent {
	
	/** The list of selected files. */
	private List<FileObject> selectedFileList;
	
	/** The selected file. */
	private FileObject selectedFile;

	/**
	 * Constructor.
	 * @param selected the selected file.
	 */
	public FileSelectionEvent(FileObject selected){
		this.selectedFile = selected;
	}
	
	/**
	 * Constructor.
	 * @param selected the list of selected files.
	 */
	public FileSelectionEvent(List<FileObject> selected){
		this.selectedFileList = selected;
	}

	@Override
	public FileObject getSelectedFile() {
		return selectedFile;
	}

	@Override
	public List<FileObject> getSelectedFiles() {
		return selectedFileList;
	}

}
